//
//  WJPublishWebVC.m
//  WJBSApp
//
//  Created by dllo on 16/8/1.
//  Copyright © 2016年 王景伟. All rights reserved.
//

#import "WJPublishWebVC.h"
#import <WebKit/WebKit.h>

@interface WJPublishWebVC ()

@property (nonatomic,strong) WJBaseView *touView;

@property (nonatomic,retain) WKWebView *webview;

@end

@implementation WJPublishWebVC
-(void)dealloc
{
    [_strUrl release];
    [_touView release];
    [_webview release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    [self createView];
}


- (void)createView
{
    self.touView = [[WJBaseView alloc]initWithFrame:CGRectMake(0, 0, WIDTH, 64)];
    [self.view addSubview:self.touView];
    [_touView release];
    
    UILabel *lable = [[UILabel alloc]initWithFrame:CGRectMake(100, 24, WIDTH - 200, 40)];
    lable.text = @"我的链接";
    lable.textAlignment = 1 ;
    [self.touView addSubview:lable];
    [lable release];
    
    WJBaseButton *button = [WJBaseButton buttonWithTitle:nil frame:CGRectMake(20, 30, 50, 30) target:self action:@selector(puLeftAction)];
    button.backgroundColor = [UIColor clearColor];
    [button setImage:[UIImage imageNamed:@"navigationButtonReturn@3x副本.png"] forState:UIControlStateNormal];
    [button setImage:[UIImage imageNamed:@"navigationButtonReturnClick@3x副本.png"] forState:UIControlStateHighlighted];
    [self.touView addSubview:button];
    
    self.webview = [[WKWebView alloc]initWithFrame:CGRectMake(0, 64, WIDTH, HEIGHT - 64)];
    [self.view addSubview:self.webview];
    [self.webview loadRequest:[NSURLRequest requestWithURL:[NSURL  URLWithString:self.strUrl]]];

    
}

- (void)puLeftAction
{
    [self dismissViewControllerAnimated:YES completion:nil];
}






@end
